<template>
  <div>
    <h2>父组件</h2>
   <MyCom @abc="doc"/>
  </div>
</template>

<script>
import MyCom from './MyCom.vue'
export default {
  components:{
    MyCom
  },
  methods: {
    doc(obj){
      console.log(obj);
    }
  },

}
</script>